//
//  MSLNewsMainViewCell.m
//  MSLNews
//
//  Created by lirenqiang on 16/6/12.
//  Copyright © 2016年 lirenqiang. All rights reserved.
//

#import "MSLNewsMainViewCell.h"
#import "MSLNewsMainTableView.h"
#import "MSLChannelModel.h"

@implementation MSLNewsMainViewCell {
    MSLNewsMainTableView * _tableView;
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self setupTableView];
        
    }
    return self;
}

- (void)setupTableView {
    
    _tableView = [[MSLNewsMainTableView alloc] init];

    _tableView.frame = self.contentView.bounds;
    
    [self.contentView addSubview:_tableView];
}

- (void)setChannelModel:(MSLChannelModel *)channelModel {
    _channelModel = channelModel;
    
    _tableView.channelModel = channelModel;
}

@end
